package com.beiding.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "resource-app")
public interface StaticResourceService {

    //认领静态资源
    @PostMapping("/resource/claim")
    List<String> claim(@RequestParam("resourceIds") List<String> resourceIds);
    //返回值是删除成功的资源
    @PostMapping("/resource/remove")
    List<String> remove(@RequestParam("resourceIds") List<String> resourceIds);

}
